export default {
  login: function (username, password) {
    return new Promise((resolve, reject) => {
      setTimeout(() => {
        if (username === "admin" && password === "<PASSWORD>") {
          resolve();
        } else {
          reject(new Error("用户名或密码错误"));
        }
      }, 1000);
    });
  },
};
